<?php

/**
 * 问卷题目Model
 */
class QuestionnaireTitleModel extends BaseModel
{
    protected $tableName = 'app_questionnaire_title';

    protected $_auto = array(
        array('create_time', 'time', 1, 'function'),
        array('update_time', 'time', 2, 'function'),
    );

    protected $_link = array(
        'option' => array(
            'mapping_type' => HAS_MANY,
            'class_name' => 'QuestionnaireOption',
            'foreign_key' => 'title_id',
            'mapping_order' => 'sort',
        ),
    );
}